STRCHR
Section: C Library Functions (3)
Index
Return to Main Contents
BSD mandoc
NAME
strchr
- locate character in string
SYNOPSIS
Fd #include <string.h>
Ft char *
Fn strchr const char *s int c
DESCRIPTION
The
Fn strchr
function locates the first occurrence of
c
in the string pointed to by
s
The terminating
NULL
character is considered part of the string.
If
Fa c
is
`\0'
,
Fn strchr
locates the terminating
`\0'
RETURN VALUES
The function
Fn strchr
returns a pointer to the located character, or
NULL
if the character does not appear in the string.
SEE ALSO
index(3),
memchr(3),
rindex(3),
strcspn(3),
strpbrk(3),
strrchr(3),
strsep(3),
strspn(3),
strstr(3),
strtok(3)
STANDARDS
The
Fn strchr
function
conforms to
St -ansiC .
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUES
-
- SEE ALSO
-
- STANDARDS
-
This document was created by
man2html,
using the manual pages.
Time: 19:41:57 GMT, December 25, 2022